package com.dotflat.imprest.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "op_imprest")
@Data
@EqualsAndHashCode(callSuper = true)
public class OPImprest extends AreableObjectBase {

	@Column(columnDefinition = "varchar(50)  COMMENT '申请人名字'")
	private String createdByName;

	@Column(columnDefinition = "varchar(20)  COMMENT '日期'", nullable = false)
	private String submitDate ;

	@Column(columnDefinition = " int(11) DEFAULT 0 COMMENT '请求金额' ", nullable = false)
	public Integer amount = 0;

	@Column(columnDefinition = "longtext  COMMENT '可能的内容'")
	private String content ;

	@Column(columnDefinition = "bit(1) default 0 COMMENT '是否放款'")
	private Boolean loaned;

	@Column(columnDefinition = "varchar(32)  COMMENT '放款人 id'")
	private String loanedBy;

	@Column(columnDefinition = "varchar(50)  COMMENT '放款人名字'")
	private String loanedByName;

	@Column(columnDefinition = " datetime COMMENT '放款时间' ")
	private Date loanedAt;

	@Column(columnDefinition = "varchar(32)  COMMENT '审核人id'")
	private String auditBy ;

	@Column(columnDefinition = "varchar(50)  COMMENT '审核人名字'")
	private String auditByName;

	@Column(columnDefinition = "varchar(200)  COMMENT '审核结论'")
	private String auditReason;

	@Column(columnDefinition = "datetime  COMMENT '审核时间'")
	private Date auditAt;
}
